const express = require('express')

const router = express.Router()



//导入路由模块
const apiRouter = require('./api/index.js')

//中间件所有请求都经过这里
//允许跨域
// router.use(require('../../middleware/cors.js'))

// //处理功能的
router.use('/api', apiRouter)




//暴露出去
module.exports = router